Skip to content

feat: aviti integration and SAMBA structure update#114

Merged
NavandarM merged 11 commits intomainfrom
aviti
Oct 27, 2025
Merged

feat: aviti integration and SAMBA structure update#114
NavandarM merged 11 commits intomainfrom
aviti

Conversation

@NavandarM
Copy link
Contributor

@NavandarM NavandarM commented Oct 13, 2025

Briefly:

  • fix: Updated adapters for the RELACS pipeline.
  • fix: Added --snakemakePath option to enable the 10X_snakePipe workflow.
  • feat: Introduced new SAMBA structure for improving data management.
  • feat: Implemented Aviti flowcell ID recognition and Parkour communication for downstream analysis.

@NavandarM NavandarM changed the title Aviti Aviti integration and SAMBA structure update Oct 13, 2025
Copy link
Member

@WardDeb WardDeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the work.
It'd be great to have:

  • Infer if aviti or not only once, and perhaps keep it at the config level
  • get rid of the code duplicatio for seqfacdir
  • have the config updates reflected in the ini template
  • ensure the tests pass
  • PR title should follow conventional commit

d = {'flowcell_id': FCID}
d['sequences'] = json.dumps(msg)
basePath= config.get("Paths","baseData")
aviti_check= glob.glob(f"{basePath}/*/RunManifest.csv")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not directly from the folder name ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the notice! opted for this approach.

current_year = "20" + str(lane_dir)[0:2]
year_postfix = Path("Sequence_Quality_" + current_year) / Path("Illumina_" + current_year)
sequencing_type=lane_dir.split("_")[1]
if sequencing_type.startswith("AV"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now a second way of discriminating aviti runs from illumina, this should be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implemented!

project = BRB.misc.pacifier(project)
sampleSheet = f"/dont_touch_this/short_runs/{runID}/RELACS_Project_{project}.txt"

# Fallback if exact path doesn't exist
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And a third way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented! taken care off redundancies.

org_yaml = 'GRCh38'
PE = linkFiles(config, group, project, outputDir, tuples)
CMD = [config.get('10x', 'RNA'), outputDir, outputDir, org_yaml]
snakeMakePath= "{}/bin".format(os.path.join(config.get('Options', 'snakemakeWorkflowBaseDir')))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not reflected in the ini file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for noticing!
Path updated in the ini file

lane_dir = Path(d).parents[1].stem
current_year = "20" + str(lane_dir)[0:2]
year_postfix = Path("Sequence_Quality_" + current_year) / Path("Illumina_" + current_year)
sequencing_type=lane_dir.split("_")[1]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to get rid of the duplicated code here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed duplicated part

@NavandarM NavandarM changed the title Aviti integration and SAMBA structure update feat: aviti integration and SAMBA structure update Oct 13, 2025
@NavandarM
Copy link
Contributor Author

  • test:Tests for the sequencing type and flow cell id detection are added.
  • feat: New function to detect the sequencing type (decision maker for subsequent sequencing type check) is added.
  • fix: redundancies for SAMBA path detection is resolved.

@NavandarM NavandarM requested a review from WardDeb October 27, 2025 11:41
Copy link
Member

@WardDeb WardDeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me ! Thanks !

@NavandarM NavandarM merged commit 132ce0c into main Oct 27, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants